package com.vic.test.proxy.springaop;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class GreetingAroundAdvice implements MethodInterceptor{

	public Object invoke(MethodInvocation invocation) throws Throwable {
		before();
		Object result = invocation.proceed();
		after();
		return result;
	}
	
	private void before(){
		System.out.println("---------------------");
	}
	
	private void after(){
		System.out.println("=====================");
	}


}
